package com.hand.qt24953.order.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.service.Tag;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * @author qiutao 2019/8/3 9:18
 */
@Configuration
public class SwaggerApiConfig {
    public static final String COMPANY = "company";
    public static final String CUSTOMER = "customer";
    public static final String ITEM = "item";
    public static final String ORDER_HEADER = "Order header";
    public static final String ORDER_LINE = "Order line";
    public static final String ORDER = "Order";

    @Autowired
    public SwaggerApiConfig(Docket docket) {
        docket.tags(
                new Tag(COMPANY, "公司管理"),
                new Tag(CUSTOMER, "客户管理"),
                new Tag(ITEM, "物料管理"),
                new Tag(ORDER_HEADER, "销售订单头管理"),
                new Tag(ORDER_LINE, "销售订单行管理"),
                new Tag(ORDER, "订单管理")
        );
    }
}
